


import {Request} from "./post_request.js"

let base = '/recruitserver/api/v1/';
/*
*审批接口 
*审批类型
*/
export const approveAddType = (_this,params) =>{return Request(_this,`${base}approval/add_type`,params)}//1、添加审批类型
export const approveGetType = (_this,params) =>{return Request(_this,`${base}approval/get_type`,params)}//2、获取审批类型
export const approveDeleteType = (_this,params) =>{return Request(_this,`${base}approval/delete_type`,params)}//3、删除审批类型

/*
 * 增加审批模板 
 * */
export const approveUpdateTypeTemplate = (_this,params) =>{return Request(_this,`${base}approval/update_template`,params)}//1、编辑审批模板
export const approveGetAllTemplate = (_this,params) =>{return Request(_this,`${base}approval/get_all_template`,params)}//2、获取全部审批模板
export const approveGetTemplateDetail = (_this,params) =>{return Request(_this,`${base}approval/get_template_detail`,params)}//3、获取审批模板详情



export const approvalSubmit = (_this,params) =>{return Request(_this,`${base}approval/submit`,params)}//4、发起审批申请
